package com.handyshop.mall.dubbo.commodity.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "商品图片关联表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "nrs_goods_image")
public class GoodsImage extends BaseEntity {
    /**
     * 商品spuId
     */
    @TableField(value = "goods_id")
    @ApiModelProperty(value = "商品spuId")
    private Long goodsId;

    /**
     * 图片id
     */
    @TableField(value = "image_id")
    @ApiModelProperty(value = "图片id")
    private Long imageId;

    public static final String COL_ID = "id";

    public static final String COL_GOODS_ID = "goods_id";

    public static final String COL_IMAGE_ID = "image_id";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}